﻿@{
    Layout = null;
    ViewBag.Controller = "place";
}

@foreach (var item in ViewBag.View)
{
    <tr>
        <td><input type="checkbox" name="items" value="@item.id"/></td>
        <td><a href="/admin/@ViewBag.Controller/update?id=@item.id" title="">@item.name</a></td>
        <td>@item.address</td>
        <td><span class="icon-status @if (item.status == 1) { Write("accept"); } else { Write("deny"); }" data-id="@item.id" ></span></td>
        <td>@item.created</td>
    </tr>
}

@if (ViewBag.View.Count == 0)
{
    <tr>
        <td colspan="7" class="empty-data">Không tìm thấy dữ liệu trả về</td>
    </tr>
}

<script type="text/javascript">
    $(function () {
        Pagination("@ViewBag.Controller", "@ViewBag.numPage", "@ViewBag.pageSize", "@ViewBag.Page", "@ViewBag.Sort_By", "@ViewBag.Sort_Type", "@ViewBag.Keyword");
    });
</script>